package com.yanu.t2s.service.Impl;

import com.yanu.t2s.entity.User;
import com.yanu.t2s.mapper.UserMapper;
import com.yanu.t2s.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User getUserByName(String account) {
        return userMapper.getUserByName(account);
    }

    @Override
    public  void addUser(User user){
        userMapper.addUser(user);
        return ;
    }








    @Override
    public List<User> findUsersByuserType(String usertype) {
        return userMapper.findUsersByuserType(usertype);
    }


    @Override
    public List<User> findallyangzhi() {
        return userMapper.findallyangzhi();
    }
}
